#pragma once

#include "streambuff_interface.h"
#include "SteamBuffer.h"

#define  _Stream_Buff_Array_Size_ 100

class CStreamBuffImpl
{
public:
	CStreamBuffImpl(void);
	~CStreamBuffImpl(void);
	/////////
	CSteamBuffer* m_SteamBufferArray[_Stream_Buff_Array_Size_];

	//////////
	int init(unsigned int streamNo,SFStream_Init_Info aSFStream_Init_Info);
	int StreamClose(unsigned int streamNo);
	int GetUseStreamBufferCount(void);
	int StreamWrite(unsigned int streamNo, SFStream_Data_Info DataInfo);
	int StreamGetLastIFrame(unsigned int streamNo, int* pReadCurPos, unsigned int startTime);
	int SFStreamRead(unsigned int streamNo, SFStream_Data_Info* DataInfo, int* pReadCurPos);
};

